﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using XLua;

public class CSharpCallLua : MonoBehaviour
{
    private LuaEnv luaEnv;

	void Start ()
    {
        luaEnv = new LuaEnv();


	}
	
	void Update ()
    { 
        if(luaEnv!=null)
        {
            luaEnv.Tick();
        }
	}

    private void OnDestroy()
    {
        luaEnv.Dispose();
    }
}
